package com.ruoyi.treatment.domain.dto;

import java.util.List;

public class DocTreatmentSubmitDto {
    // 就诊ID
    private Long treatId;
    // 用户昵称
    private String nickName;

    // 身份证号
    private String userName;

    // 用户年龄
    private Integer userAge;

    // 地址
    private String appAddress;

    // 诊断描述
    private String treatInfo;

//    // 药方ID
//    private String prescriptId;

    // 药品清单
    private List<YaoDanDto> yaoDan;

    // 构造函数
    public DocTreatmentSubmitDto() {
    }

    // Getter和Setter方法

    public Long getTreatId() {
        return treatId;
    }

    public void setTreatId(Long treatId) {
        this.treatId = treatId;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public Integer getUserAge() {
        return userAge;
    }

    public void setUserAge(Integer userAge) {
        this.userAge = userAge;
    }

    public String getAppAddress() {
        return appAddress;
    }

    public void setAppAddress(String appAddress) {
        this.appAddress = appAddress;
    }

    public String getTreatInfo() {
        return treatInfo;
    }

    public void setTreatInfo(String treatInfo) {
        this.treatInfo = treatInfo;
    }

    public List<YaoDanDto> getYaoDan() {
        return yaoDan;
    }

    public void setYaoDan(List<YaoDanDto> yaoDan) {
        this.yaoDan = yaoDan;
    }

    // 内部类 - 药品清单项
    public static class YaoDanDto {
        // 药品名称
        private String name;

        // 药品ID
        private Long drugId;

        // 数量
        private Integer quantity;

        // 构造函数
        public YaoDanDto() {
        }

        // Getter和Setter方法
        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public Long getDrugId() {
            return drugId;
        }

        public void setDrugId(Long drugId) {
            this.drugId = drugId;
        }

        public Integer getQuantity() {
            return quantity;
        }

        public void setQuantity(Integer quantity) {
            this.quantity = quantity;
        }
    }
}
